.class public Lcom/netease/newsreader/activity/ShowBigPic;
.super Lcom/netease/newsreader/activity/BaseActivity;
.source "ShowBigPic.java"


# instance fields
.field private altString:Ljava/lang/String;

.field private bigpicDesc:Landroid/widget/TextView;

.field private bigpicImg:Landroid/widget/ImageView;

.field private bigpicLinearLayout:Landroid/widget/LinearLayout;

.field private downloadButton:Landroid/widget/ImageButton;

.field private downloadClickListener:Landroid/view/View$OnClickListener;

.field private downloadimgSrcString:Ljava/lang/String;

.field private handler:Landroid/os/Handler;

.field private imgBm:Landroid/graphics/Bitmap;

.field private imgClickListener:Landroid/view/View$OnClickListener;

.field private imgSrcString:Ljava/lang/String;

.field private loadingLayout:Landroid/widget/LinearLayout;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 29
    invoke-direct {p0}, Lcom/netease/newsreader/activity/BaseActivity;-><init>()V

    .line 31
    const-string v0, ""

    iput-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgSrcString:Ljava/lang/String;

    .line 32
    const-string v0, ""

    iput-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->altString:Ljava/lang/String;

    .line 33
    const-string v0, ""

    iput-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->downloadimgSrcString:Ljava/lang/String;

    .line 34
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgBm:Landroid/graphics/Bitmap;

    .line 192
    new-instance v0, Lcom/netease/newsreader/activity/ShowBigPic$1;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/ShowBigPic$1;-><init>(Lcom/netease/newsreader/activity/ShowBigPic;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->handler:Landroid/os/Handler;

    .line 241
    new-instance v0, Lcom/netease/newsreader/activity/ShowBigPic$2;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/ShowBigPic$2;-><init>(Lcom/netease/newsreader/activity/ShowBigPic;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->downloadClickListener:Landroid/view/View$OnClickListener;

    .line 291
    new-instance v0, Lcom/netease/newsreader/activity/ShowBigPic$3;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/ShowBigPic$3;-><init>(Lcom/netease/newsreader/activity/ShowBigPic;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgClickListener:Landroid/view/View$OnClickListener;

    .line 29
    return-void
.end method

.method static synthetic access$0(Lcom/netease/newsreader/activity/ShowBigPic;)V
    .locals 0
    .parameter

    .prologue
    .line 180
    invoke-direct {p0}, Lcom/netease/newsreader/activity/ShowBigPic;->hideLoadingLayout()V

    return-void
.end method

.method static synthetic access$1(Lcom/netease/newsreader/activity/ShowBigPic;)Landroid/graphics/Bitmap;
    .locals 1
    .parameter

    .prologue
    .line 34
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgBm:Landroid/graphics/Bitmap;

    return-object v0
.end method

.method static synthetic access$2(Lcom/netease/newsreader/activity/ShowBigPic;)Landroid/widget/ImageView;
    .locals 1
    .parameter

    .prologue
    .line 36
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->bigpicImg:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$3(Lcom/netease/newsreader/activity/ShowBigPic;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 32
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->altString:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$4(Lcom/netease/newsreader/activity/ShowBigPic;)Landroid/widget/TextView;
    .locals 1
    .parameter

    .prologue
    .line 37
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->bigpicDesc:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$5(Lcom/netease/newsreader/activity/ShowBigPic;)Landroid/widget/LinearLayout;
    .locals 1
    .parameter

    .prologue
    .line 40
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->bigpicLinearLayout:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic access$6(Lcom/netease/newsreader/activity/ShowBigPic;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 192
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->handler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$7(Lcom/netease/newsreader/activity/ShowBigPic;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 31
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgSrcString:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$8(Lcom/netease/newsreader/activity/ShowBigPic;Landroid/graphics/Bitmap;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 34
    iput-object p1, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgBm:Landroid/graphics/Bitmap;

    return-void
.end method

.method private findViewsById()V
    .locals 1

    .prologue
    .line 168
    const v0, 0x7f0c014a

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/ShowBigPic;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->bigpicImg:Landroid/widget/ImageView;

    .line 169
    const v0, 0x7f0c014b

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/ShowBigPic;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->bigpicDesc:Landroid/widget/TextView;

    .line 170
    const v0, 0x7f0c014c

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/ShowBigPic;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageButton;

    iput-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->downloadButton:Landroid/widget/ImageButton;

    .line 171
    const v0, 0x7f0c014d

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/ShowBigPic;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->loadingLayout:Landroid/widget/LinearLayout;

    .line 172
    const v0, 0x7f0c0149

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/ShowBigPic;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->bigpicLinearLayout:Landroid/widget/LinearLayout;

    .line 173
    return-void
.end method

.method private getNetworkImage()V
    .locals 15

    .prologue
    const/4 v14, 0x0

    const/4 v13, 0x1

    const/4 v12, 0x0

    .line 108
    invoke-static {p0}, Lcom/netease/newsreader/util/Tools;->CheckNetwork(Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 109
    new-instance v1, Lcom/netease/newsreader/activity/ShowBigPic$4;

    invoke-direct {v1, p0}, Lcom/netease/newsreader/activity/ShowBigPic$4;-><init>(Lcom/netease/newsreader/activity/ShowBigPic;)V

    .line 123
    invoke-virtual {v1}, Lcom/netease/newsreader/activity/ShowBigPic$4;->start()V

    .line 165
    :goto_0
    return-void

    .line 125
    :cond_0
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic;->downloadimgSrcString:Ljava/lang/String;

    if-eqz v1, :cond_4

    const-string v1, ""

    iget-object v2, p0, Lcom/netease/newsreader/activity/ShowBigPic;->downloadimgSrcString:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_4

    sget-object v1, Lcom/netease/newsreader/util/PicUtil;->phototempDir:Ljava/lang/String;

    iget-object v2, p0, Lcom/netease/newsreader/activity/ShowBigPic;->downloadimgSrcString:Ljava/lang/String;

    .line 126
    iget-object v3, p0, Lcom/netease/newsreader/activity/ShowBigPic;->downloadimgSrcString:Ljava/lang/String;

    const-string v4, "/"

    invoke-virtual {v3, v4}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v3

    add-int/lit8 v3, v3, 0x1

    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowBigPic;->downloadimgSrcString:Ljava/lang/String;

    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v4

    .line 125
    invoke-virtual {v2, v3, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/netease/newsreader/util/PicUtil;->isLocalPicExit(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_4

    .line 127
    invoke-direct {p0}, Lcom/netease/newsreader/activity/ShowBigPic;->hideLoadingLayout()V

    .line 129
    new-instance v7, Ljava/lang/ref/WeakReference;

    sget-object v1, Lcom/netease/newsreader/util/PicUtil;->phototempDir:Ljava/lang/String;

    .line 130
    iget-object v2, p0, Lcom/netease/newsreader/activity/ShowBigPic;->downloadimgSrcString:Ljava/lang/String;

    iget-object v3, p0, Lcom/netease/newsreader/activity/ShowBigPic;->downloadimgSrcString:Ljava/lang/String;

    const-string v4, "/"

    invoke-virtual {v3, v4}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v3

    add-int/lit8 v3, v3, 0x1

    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowBigPic;->downloadimgSrcString:Ljava/lang/String;

    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v4

    invoke-virtual {v2, v3, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    .line 129
    invoke-static {v1, v2}, Lcom/netease/newsreader/util/PicUtil;->readLocalJPEGFile(Ljava/lang/String;Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-direct {v7, v1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    .line 132
    .local v7, bitmapReference:Ljava/lang/ref/WeakReference;,"Ljava/lang/ref/WeakReference<Landroid/graphics/Bitmap;>;"
    invoke-virtual {v7}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/graphics/Bitmap;

    .line 133
    .local v0, orgbitmap:Landroid/graphics/Bitmap;
    if-eqz v0, :cond_3

    .line 135
    :try_start_0
    new-instance v5, Landroid/graphics/Matrix;

    invoke-direct {v5}, Landroid/graphics/Matrix;-><init>()V

    .line 136
    .local v5, matrix:Landroid/graphics/Matrix;
    const/high16 v1, 0x4020

    const/high16 v2, 0x4020

    invoke-virtual {v5, v1, v2}, Landroid/graphics/Matrix;->postScale(FF)Z

    .line 137
    const/4 v1, 0x0

    const/4 v2, 0x0

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v3

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v4

    const/4 v6, 0x1

    invoke-static/range {v0 .. v6}, Landroid/graphics/Bitmap;->createBitmap(Landroid/graphics/Bitmap;IIIILandroid/graphics/Matrix;Z)Landroid/graphics/Bitmap;

    move-result-object v10

    .line 138
    .local v10, newbmp:Landroid/graphics/Bitmap;
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic;->bigpicImg:Landroid/widget/ImageView;

    invoke-virtual {v1, v10}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/OutOfMemoryError; {:try_start_0 .. :try_end_0} :catch_1

    .line 149
    .end local v5           #matrix:Landroid/graphics/Matrix;
    .end local v10           #newbmp:Landroid/graphics/Bitmap;
    :goto_1
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic;->altString:Ljava/lang/String;

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic;->altString:Ljava/lang/String;

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_2

    .line 151
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic;->bigpicDesc:Landroid/widget/TextView;

    invoke-virtual {v1, v12}, Landroid/widget/TextView;->setVisibility(I)V

    .line 152
    iget-object v11, p0, Lcom/netease/newsreader/activity/ShowBigPic;->altString:Ljava/lang/String;

    .line 153
    .local v11, t:Ljava/lang/String;
    iget v1, p0, Lcom/netease/newsreader/activity/ShowBigPic;->screentype:I

    if-ne v13, v1, :cond_1

    .line 154
    invoke-virtual {v11}, Ljava/lang/String;->length()I

    move-result v1

    const/16 v2, 0x16

    if-le v1, v2, :cond_1

    new-instance v1, Ljava/lang/StringBuilder;

    const/16 v2, 0x14

    invoke-virtual {v11, v12, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, ".."

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    .line 155
    :cond_1
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic;->bigpicDesc:Landroid/widget/TextView;

    invoke-virtual {v1, v11}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 160
    .end local v11           #t:Ljava/lang/String;
    :cond_2
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic;->bigpicLinearLayout:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v12}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto/16 :goto_0

    .line 139
    :catch_0
    move-exception v8

    .line 140
    .local v8, e:Ljava/lang/Exception;
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic;->bigpicImg:Landroid/widget/ImageView;

    invoke-virtual {v1, v14}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    goto :goto_1

    .line 141
    .end local v8           #e:Ljava/lang/Exception;
    :catch_1
    move-exception v9

    .line 142
    .local v9, error:Ljava/lang/OutOfMemoryError;
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic;->bigpicImg:Landroid/widget/ImageView;

    invoke-virtual {v1, v14}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    goto :goto_1

    .line 145
    .end local v9           #error:Ljava/lang/OutOfMemoryError;
    :cond_3
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic;->bigpicImg:Landroid/widget/ImageView;

    invoke-virtual {v1, v14}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    goto :goto_1

    .line 162
    .end local v0           #orgbitmap:Landroid/graphics/Bitmap;
    .end local v7           #bitmapReference:Ljava/lang/ref/WeakReference;,"Ljava/lang/ref/WeakReference<Landroid/graphics/Bitmap;>;"
    :cond_4
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic;->handler:Landroid/os/Handler;

    invoke-virtual {v1, v13}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto/16 :goto_0
.end method

.method private hideLoadingLayout()V
    .locals 2

    .prologue
    .line 181
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->loadingLayout:Landroid/widget/LinearLayout;

    if-eqz v0, :cond_0

    .line 182
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->loadingLayout:Landroid/widget/LinearLayout;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 184
    :cond_0
    return-void
.end method

.method private setListeners()V
    .locals 2

    .prologue
    .line 176
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->bigpicImg:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 177
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->downloadButton:Landroid/widget/ImageButton;

    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic;->downloadClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 178
    return-void
.end method

.method private showLoadingLayout()V
    .locals 2

    .prologue
    .line 187
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->loadingLayout:Landroid/widget/LinearLayout;

    if-eqz v0, :cond_0

    .line 188
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->loadingLayout:Landroid/widget/LinearLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 190
    :cond_0
    return-void
.end method


# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
    .locals 11
    .parameter "savedInstanceState"

    .prologue
    const/4 v10, 0x1

    const/4 v9, 0x0

    .line 45
    invoke-super {p0, p1}, Lcom/netease/newsreader/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 46
    invoke-virtual {p0, v10}, Lcom/netease/newsreader/activity/ShowBigPic;->requestWindowFeature(I)Z

    .line 48
    const v5, 0x7f030065

    invoke-virtual {p0, v5}, Lcom/netease/newsreader/activity/ShowBigPic;->setContentView(I)V

    .line 49
    invoke-direct {p0}, Lcom/netease/newsreader/activity/ShowBigPic;->findViewsById()V

    .line 50
    invoke-direct {p0}, Lcom/netease/newsreader/activity/ShowBigPic;->setListeners()V

    .line 51
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/ShowBigPic;->getThemeSettingsHelper()Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v4

    .line 52
    .local v4, themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;
    const v5, 0x7f0c014b

    const v6, 0x7f080017

    invoke-virtual {v4, p0, v5, v6}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 54
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/ShowBigPic;->getIntent()Landroid/content/Intent;

    move-result-object v5

    invoke-virtual {v5}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v1

    .line 55
    .local v1, bundle:Landroid/os/Bundle;
    if-eqz v1, :cond_0

    .line 57
    const-string v5, "downloadimg"

    invoke-virtual {v1, v5}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    iput-object v5, p0, Lcom/netease/newsreader/activity/ShowBigPic;->downloadimgSrcString:Ljava/lang/String;

    .line 58
    iget-object v5, p0, Lcom/netease/newsreader/activity/ShowBigPic;->downloadimgSrcString:Ljava/lang/String;

    const-string v6, "_small"

    const-string v7, ""

    invoke-virtual {v5, v6, v7}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v5

    iput-object v5, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgSrcString:Ljava/lang/String;

    .line 59
    const-string v5, "alt"

    invoke-virtual {v1, v5}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    iput-object v5, p0, Lcom/netease/newsreader/activity/ShowBigPic;->altString:Ljava/lang/String;

    .line 61
    :try_start_0
    iget-object v5, p0, Lcom/netease/newsreader/activity/ShowBigPic;->altString:Ljava/lang/String;

    invoke-static {v5}, Lcom/netease/newsreader/util/Tools;->htmlDecoder(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    iput-object v5, p0, Lcom/netease/newsreader/activity/ShowBigPic;->altString:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 68
    :cond_0
    :goto_0
    iget-object v5, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgSrcString:Ljava/lang/String;

    if-eqz v5, :cond_1

    iget-object v5, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgSrcString:Ljava/lang/String;

    const-string v6, ""

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_1

    .line 69
    invoke-direct {p0}, Lcom/netease/newsreader/activity/ShowBigPic;->showLoadingLayout()V

    .line 70
    sget-object v5, Lcom/netease/newsreader/util/PicUtil;->phototempDir:Ljava/lang/String;

    iget-object v6, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgSrcString:Ljava/lang/String;

    .line 71
    iget-object v7, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgSrcString:Ljava/lang/String;

    const-string v8, "/"

    invoke-virtual {v7, v8}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v7

    add-int/lit8 v7, v7, 0x1

    iget-object v8, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgSrcString:Ljava/lang/String;

    invoke-virtual {v8}, Ljava/lang/String;->length()I

    move-result v8

    .line 70
    invoke-virtual {v6, v7, v8}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v6

    invoke-static {v5, v6}, Lcom/netease/newsreader/util/PicUtil;->isLocalPicExit(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_5

    .line 72
    invoke-direct {p0}, Lcom/netease/newsreader/activity/ShowBigPic;->hideLoadingLayout()V

    .line 74
    new-instance v0, Ljava/lang/ref/WeakReference;

    sget-object v5, Lcom/netease/newsreader/util/PicUtil;->phototempDir:Ljava/lang/String;

    .line 75
    iget-object v6, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgSrcString:Ljava/lang/String;

    iget-object v7, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgSrcString:Ljava/lang/String;

    const-string v8, "/"

    invoke-virtual {v7, v8}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v7

    add-int/lit8 v7, v7, 0x1

    iget-object v8, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgSrcString:Ljava/lang/String;

    invoke-virtual {v8}, Ljava/lang/String;->length()I

    move-result v8

    invoke-virtual {v6, v7, v8}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v6

    .line 74
    invoke-static {v5, v6}, Lcom/netease/newsreader/util/PicUtil;->readLocalJPEGFile(Ljava/lang/String;Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v5

    invoke-direct {v0, v5}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    .line 76
    .local v0, bitmapReference:Ljava/lang/ref/WeakReference;,"Ljava/lang/ref/WeakReference<Landroid/graphics/Bitmap;>;"
    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Landroid/graphics/Bitmap;

    iput-object v5, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgBm:Landroid/graphics/Bitmap;

    .line 78
    iget-object v5, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgBm:Landroid/graphics/Bitmap;

    if-nez v5, :cond_2

    .line 79
    invoke-direct {p0}, Lcom/netease/newsreader/activity/ShowBigPic;->getNetworkImage()V

    .line 103
    .end local v0           #bitmapReference:Ljava/lang/ref/WeakReference;,"Ljava/lang/ref/WeakReference<Landroid/graphics/Bitmap;>;"
    :cond_1
    :goto_1
    const-string v5, "showbigpic"

    const-string v6, "bp"

    invoke-static {p0, v5, v6}, Lcom/netease/mobileanalysis/MobileAgent;->setEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 104
    return-void

    .line 62
    :catch_0
    move-exception v2

    .line 64
    .local v2, e:Ljava/lang/Exception;
    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0

    .line 81
    .end local v2           #e:Ljava/lang/Exception;
    .restart local v0       #bitmapReference:Ljava/lang/ref/WeakReference;,"Ljava/lang/ref/WeakReference<Landroid/graphics/Bitmap;>;"
    :cond_2
    iget-object v5, p0, Lcom/netease/newsreader/activity/ShowBigPic;->bigpicImg:Landroid/widget/ImageView;

    iget-object v6, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgBm:Landroid/graphics/Bitmap;

    invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 83
    iget-object v5, p0, Lcom/netease/newsreader/activity/ShowBigPic;->altString:Ljava/lang/String;

    if-eqz v5, :cond_4

    iget-object v5, p0, Lcom/netease/newsreader/activity/ShowBigPic;->altString:Ljava/lang/String;

    const-string v6, ""

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_4

    .line 84
    iget-object v5, p0, Lcom/netease/newsreader/activity/ShowBigPic;->bigpicDesc:Landroid/widget/TextView;

    invoke-virtual {v5, v9}, Landroid/widget/TextView;->setVisibility(I)V

    .line 85
    iget-object v3, p0, Lcom/netease/newsreader/activity/ShowBigPic;->altString:Ljava/lang/String;

    .line 86
    .local v3, t:Ljava/lang/String;
    iget v5, p0, Lcom/netease/newsreader/activity/ShowBigPic;->screentype:I

    if-ne v10, v5, :cond_3

    .line 87
    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v5

    const/16 v6, 0x16

    if-le v5, v6, :cond_3

    new-instance v5, Ljava/lang/StringBuilder;

    const/16 v6, 0x14

    invoke-virtual {v3, v9, v6}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, ".."

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 88
    :cond_3
    iget-object v5, p0, Lcom/netease/newsreader/activity/ShowBigPic;->bigpicDesc:Landroid/widget/TextView;

    invoke-virtual {v5, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 93
    .end local v3           #t:Ljava/lang/String;
    :cond_4
    iget-object v5, p0, Lcom/netease/newsreader/activity/ShowBigPic;->bigpicLinearLayout:Landroid/widget/LinearLayout;

    invoke-virtual {v5, v9}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_1

    .line 97
    .end local v0           #bitmapReference:Ljava/lang/ref/WeakReference;,"Ljava/lang/ref/WeakReference<Landroid/graphics/Bitmap;>;"
    :cond_5
    invoke-direct {p0}, Lcom/netease/newsreader/activity/ShowBigPic;->getNetworkImage()V

    goto :goto_1
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 326
    invoke-super {p0}, Lcom/netease/newsreader/activity/BaseActivity;->onDestroy()V

    .line 327
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgBm:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_0

    .line 328
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgBm:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 329
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->imgBm:Landroid/graphics/Bitmap;

    .line 331
    :cond_0
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .parameter "keyCode"
    .parameter "event"

    .prologue
    .line 314
    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    const/4 v1, 0x1

    if-le v0, v1, :cond_0

    .line 315
    invoke-super {p0, p1, p2}, Lcom/netease/newsreader/activity/BaseActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    .line 320
    :goto_0
    return v0

    .line 317
    :cond_0
    const/4 v0, 0x4

    if-ne p1, v0, :cond_1

    .line 318
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->bigpicImg:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->performClick()Z

    .line 320
    :cond_1
    invoke-super {p0, p1, p2}, Lcom/netease/newsreader/activity/BaseActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 2
    .parameter "event"

    .prologue
    .line 304
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    .line 305
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->loadingLayout:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v0

    const/16 v1, 0x8

    if-ne v0, v1, :cond_1

    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic;->bigpicImg:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->performClick()Z

    .line 308
    :cond_0
    :goto_0
    invoke-super {p0, p1}, Lcom/netease/newsreader/activity/BaseActivity;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    return v0

    .line 306
    :cond_1
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/ShowBigPic;->finish()V

    goto :goto_0
.end method
